﻿using System;
using System.Web;
using WAD.WEB.AppCode;
using QD.WX.Utill;

namespace WAD.WEB.Client2.Ajax
{

    public partial class Jubao : AjaxBase
    {
        public override void AjaxMethodDispatch(String identity)
        {
            switch (identity)
            {
                case "add": this.Add(); break;
            }
        }
        /// <summary>
        /// 添加举报
        /// </summary>
        [QD.Web.Ajax.AjaxMethod]
        public void Add()
        {
            int count = DAL.DAOJubao.Add(Parse.Int("user_id", 0), Parse.Int("type", 1), Util.FilterSql(Parse.String("radtype", "")), Util.FilterSql(Parse.String("title", "")), Util.FilterSql(Parse.String("url", "")), Util.FilterSql(Parse.String("remark", "")), Util.FilterSql(Parse.String("phone", "")));
            if (count > 0)
                Success();
            Fail();
        }
    }
}